import type { UserGroup, Response } from '../user_group/types.js';
import type { UserHasGroup } from './types.js';
import { requestClient } from '#/api/request';

export const getUserGroupList = async (page: number, pageSize: number, params?: any) => {
  return requestClient.get<Response>(`/uctoo/user_group/${pageSize}/${page}`, { params });
};

export const connectUserHasGroup = async (data: Partial<UserHasGroup>) => {
  return requestClient.post<UserHasGroup>('/uctoo/user_has_group/connect', data);
};
